<?php
include_once("../../DataProvider.php");
if(isset($_GET["id"]))
{
	$id = $_GET["id"];
	$sql = "delete from tbl_categories where idCategories = $id";
	$result = DataProvider::ExecuteQuery($sql);
	if($result)
	{
		header("Location: ../categories.php");
	}
	else
	{
		echo "error";
		}

}

?>